package com.xmx.service.impl;

import com.xmx.entity.Chances;
import com.xmx.mapper.IChancesMapper;
import com.xmx.service.IChancesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 描述：
 * 作者：bihui
 * 时间：2023年04月24日 16:45
 */
@Service
public class IChancesServiceImpl implements IChancesService {
    @Autowired
    private IChancesMapper iChancesMapper;
    @Override
    public List<Chances> queryChances() {
        return iChancesMapper.queryChances();
    }

    @Override
    public Chances queryChancesById(int id) {
        return iChancesMapper.queryChancesById(id);
    }

    @Override
    public void updateChances(Chances chances) {
        iChancesMapper.updateChances(chances);
    }
}
